package cn.fhkj.entity;

public class RenQiuZfPublicityTypeLv1 extends BaseEntity {
    /**
     * id
     * 表字段 : renqiu_zf_publicity_type_lv1.id
     */
    private Long id;

    /**
     * 类型名称
     * 表字段 : renqiu_zf_publicity_type_lv1.name
     */
    private String name;

    /**
     * 获取 id 字段:renqiu_zf_publicity_type_lv1.id
     *
     * @return renqiu_zf_publicity_type_lv1.id, id
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置 id 字段:renqiu_zf_publicity_type_lv1.id
     *
     * @param id the value for renqiu_zf_publicity_type_lv1.id, id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取 类型名称 字段:renqiu_zf_publicity_type_lv1.name
     *
     * @return renqiu_zf_publicity_type_lv1.name, 类型名称
     */
    public String getName() {
        return name;
    }

    /**
     * 设置 类型名称 字段:renqiu_zf_publicity_type_lv1.name
     *
     * @param name the value for renqiu_zf_publicity_type_lv1.name, 类型名称
     */
    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    /**
     * ,renqiu_zf_publicity_type_lv1
     *
     * @param that
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        RenQiuZfPublicityTypeLv1 other = (RenQiuZfPublicityTypeLv1) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()));
    }

    /**
     * ,renqiu_zf_publicity_type_lv1
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        return result;
    }
}